<?php
namespace App\services;

class GaoDe{
    public static function getJLByAddress($address){

        $url=sprintf(config('geo.url'),config('geo.key')).$address;


        $res =file_get_contents($url,true);

        $res =json_decode($res,true)['geocodes'][0]['location'];

        return explode(',',$res);  //dd($res);


    }


}
